<?php

class page_index {
  
  function _default() {
    global $db;
    if(file_exists(ROOT_WEB.'index.php')) redirect(WEB_SURL."?app=index");
    $catalog = $_REQUEST['catalog'];
    $catalog = preg_replace("/([^A-Za-z0-9_\-])+/",'',$catalog);
    if ($catalog) {
      include T("$catalog.html");
    }
    else {
      include T("index.html");
    }
  }
  
}

?>